/*
 * @Author       : wfl
 * @LastEditors  : wfl
 * @description  :
 * @updateInfo   :
 * @Date         : 2023-03-02 09:54:42
 * @LastEditTime : 2023-04-19 09:40:41
 */
import router from '@g/router'
import useSettingsStore from '@g/store/modules/settings'

export default function useMainPage() {
  const settingsStore = useSettingsStore()

  function reload() {
    router.push({
      name: 'reload'
    })
  }

  function maximize(status: boolean) {
    settingsStore.setMainPageMaximize(status)
  }

  return {
    reload,
    maximize
  }
}
